#include"Stack.h"

void StackTest1()
{
    ST s;
    StackInit(&s);

    StackPush(&s, 1);
    StackPush(&s, 2);
    StackPush(&s, 3);
    StackPush(&s, 4);
    StackPush(&s, 5);
    StackPush(&s, 6);

    printf("%d\n", StackSize(&s));
    while(!StackEmpty(&s))
    {
        printf("%d ",StackTop(&s));
        StackPop(&s);

    }
    printf("\n");

    StackDestroy(&s);
}
int main()
{
    StackTest1();
    return 0;
}
